/**
 * ExtDirect4Java
 * @author Steve Jacot-Guillarmod
 * @version 0.1-alpha
 *
 * Copyright(c) 2009, Swissdotnet S�rl
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 */
package ch.swissdotnet.extdirect4j;

class ExtDirectException extends RuntimeException {
    private String message;
    private String where;

    public ExtDirectException(final Throwable throwable) {
        super(throwable);
    }
    public ExtDirectException(final String message, final Throwable throwable) {
        this(message, throwable.toString());
    }

    private ExtDirectException(final String message, final String where) {
        super(message);
        this.message = message;
        this.where = where;
    }

    public ExtDirectException(final String message) {
        super(message);
        this.message = message;
    }

    public String getDebugMessage() {
        return message;
    }

    public String getWhere() {
        return where;
    }
}
